package com.zretc.entity;

import java.util.List;

/**
 * 实体类
 * @author Administrator
 *
 */
public class Author {
	private int authorid;
	private String authorname;
	
	//还要有一个Blog信息，这个作者写了几篇Blog
	private List<Blog> blogs;
	
	public List<Blog> getBlogs() {
		return blogs;
	}
	public void setBlogs(List<Blog> blogs) {
		this.blogs = blogs;
	}
	
	
	@Override
	public String toString() {
		return "Author [authorid=" + authorid + ", authorname=" + authorname + "]";
	}
	public int getAuthorid() {
		return authorid;
	}
	public void setAuthorid(int authorid) {
		this.authorid = authorid;
	}
	public String getAuthorname() {
		return authorname;
	}
	public void setAuthorname(String authorname) {
		this.authorname = authorname;
	}
	
	
	

}
